<template>
  <ExcelUpload
    :do-upload="props.modelValue.pageConfig.doUpload"
    @callback="handleCallback"
  />
</template>

<script setup lang="ts">
interface Props {
  modelValue: {
    pageConfig: {
      doUpload: () => any;
    };
  };
}
const props = defineProps<Props>();

const emit = defineEmits(["callback"]);

function handleCallback(data: any) {
  emit("callback", data);
}
</script>

<style scoped></style>
